home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 4 / MacMania 4.toast / / Art&Graphics / ascii-art-maker / Documentation / Quick Start, and a Manual < prev    next >
Text File  |  1995-06-28  |  12KB  |  156 lines

  1. PICT -> ASCII
  2. A Macintosh Picture into ASCII Art Conversion Application
  3.                                                                                                 
  4.  
  5. Manual
  6.  
  7. Note: PICT->ASCII does not yet convert "PICT" files to ASCII, and I'm sorry if that confused you. It's coming. It does convert CURS, ICON, ICN#, ics#, kcs#, SICN, PAT#, ppat, and cicn resources to ASCII, though, and darned well, too!
  8. PICT->ASCII is a very simple app, and as of now it's just an interface to the conversion algorithm; it's not very user-friendly. You type in how long by how high the image is, then paste in the hex data from ResEdit. It accepts any size up to 128x128, at 1 bit. It creates the art instantly and displays it. If your religion forbids you from using ResEdit, then you'll have to wait for the next version of this program, when it will have a nice Mac interface. 
  9. It's 5$ shareware, and pretty much well worth it :)
  10.  
  11. Quick Start: (Please read this even if you don't want a "Quick Start" — it'll give you the basics that you need to know.)
  12.                                                                                                                                                           
  13. 1. Open ResEdit
  14. 2. Open the file that contains the cursor, or icon you wish to convert to ASCII. 
  15.     If you wish to paste in original PICT data, and the data is already 32x32 or smaller, do the following things:
  16.     A: Choose "New" from the File menu
  17.     B: Make a new ICON resource by typing Command-K or choosing "Create new resource" in the resource menu. Type in "ICON". It's case sensitive.
  18.     C: Paste in the picture data. It is not to exceed 32x32 pixels.
  19.     D: Close the window
  20. 3. Select the ICON you wish to convert
  21. 4. Choose "Open using hex editor" from the resource menu.
  22. 5. Choose "Select All" from the Edit menu, then "Copy"
  23.     PowerUser Tip: To speed up input of the picture data, do the following: make the hex window as big and long as you can. Select only the hex from offsets 0 to 78. Be sure to get all of offsets 0 and 78, because sometimes you miss a column. Then choose "copy".
  24. 6. Open PICT->ASCII converter
  25. 7. Type in 32, 32 at the appropriate prompts
  26. 8. Type in the style you would like to use:
  27.     If you decide not to use the smoothing feature, you picture will turn out will edges like this:
  28.  
  29.   |~^~^~^~^~^~~|^~^~~|,         
  30.   |            |     | ',       
  31.   |            |     |   ',     
  32.   |        .^~^~     '^~^~|     
  33.   |        |              |     
  34.   |         ^~~|          |     
  35.   |            |    __,   |     
  36.   |            |   |   |  |     
  37.   |~^~|    |^~~|^~^~   '^~`     
  38.   |   \ , /    |                
  39.   |            |__              
  40.   |               |             
  41.   |               |             
  42.   |            |^~              
  43.   |            |                
  44.   |____________|                
  45.     
  46.     In this case, since the picture's mostly boxy, turning smoothing off is probably preferable. However, if your taste calls for something slightly smoother, you'll get this: (note the edges.)
  47.  
  48.  
  49.   (^^~^~^~^~^~~)^~^~~),         
  50.   |            |     | ',       
  51.   |            |     |   ',     
  52.   |        .^~^~     '^~^~|     
  53.   |        |              |     
  54.   |         ^~~)          |     
  55.   |            |    __,   |     
  56.   |            |   |   |  |     
  57.   (^^~|    |^~~)^~^~   '^~`     
  58.   |   \ , /    |                
  59.   |            |__              
  60.   |               |             
  61.   |               |             
  62.   |            |^~              
  63.   |            |                
  64.   (.__________.)                
  65.  
  66.     That's also nice. You of course are not bound to any choice you make — if you want to try it a different way, I'll explain how to do that in a second.
  67.  
  68. 9. Paste in the data, and press return.
  69.     If you entered the dimensions right, and copied the resource correctly, it should automatically output your image.
  70. 10. Quit, or press return to rerun the program from the start.
  71.     Trying it again: If you would like to see your image with the alternate style (if you chose sharp and want to see it smooth, for example) press return when prompted. Then repeat the process, changing only your answer when it asks you if you would like rounding.
  72.     Quitting: You can save the output file if you want, but it's pointless, since the art's already saved in a file named "output.ascii," in the same folder as the program.
  73.  
  74. Now you have a semi-complete ASCII art image. If you're in a hurry, the straight output will do. But if you're going to post it somewhere, etc, I advise you to clean it up. This may include rounding corners, filling better black spaces, etc.
  75.  
  76. Notes for getting good results:
  77.                                                                                                                                                           
  78. • Use larger images. 32x32s turn out very well. 16x16s can be hard to recognize.
  79. • Use images that are bascially line drawings, etc. Scanned images will not fair well.
  80. • Don't ever use images that contain a 50% grey. The algorithm freaks out, and you will get a bunch of slashes instead of grey. Try it yourself. (I'd replace the 50% grey with either black or white, completely.)
  81. • Don't use busy images.
  82. • Only use 1-Bit images that have been copied from ResEdit using the methods described.
  83. • If an image isn't right, adjust it so that the program can handle it. That's about it!
  84.  
  85. Sizes Other Than 32x32
  86.                                                                                                                                                           
  87. Sometimes you want something larger than 32x32. Or smaller. No matter. p2a can handle this. I will first cover all of the 16x16 pixel image methods. All of the following methods assume you understand how to create a graphic resource, or use one. If you need a refresher, from the main file window of ResEdit (the one with all of the resources) open the resource type you wish to copy from or create a new resource. From the picker, open the resource.
  88.  
  89. Any 16x16 pixel image (starting from the ics#, kcs#, SICN, PAT# or CURS picker)
  90. 1. Select the resource from the picker, or create one as described. 
  91.     • You can paste a 16x16 1 bit picture into the editor. To create a resource, choose "Create new resource," and type "ics#"
  92. 2. Select the resource you wish to open, (if you made one, it's already open, so close it.) and open it using the hex editor, in the resource menu.(as described above.) 
  93. 3. Choose "Select All," from the Edit menu, and then "Copy."
  94. 4. Paste data into PICT->ASCII. Be sure to set the dimensions to 16x16.
  95.  
  96. A 32x32 pixel image in a cicn resource:
  97. You don't want to mess with a cicn when you don't have to. That's why I recomend opening the cicn using the standard picker, choosing the "Black and White" image, (if there is one. If there isn't, drag the small image of the color icon onto the space where the b&w icon would be.) selecting all of it, pasting it into a regular ICON resource, and using the described methods.
  98.  
  99. A 64x64 pixel image:
  100. Ok, ok, so you've gotta have a giant image. I can identify with that. It's just that the cicn resource is so messy...here goes.
  101. A brief explanation of the cicn: (read this) theres a color image, a bw image, and a mask. Nuff said. You know where the representations of them are? Of course you do. Just to the left of the picture editing area. The color one will automatically be selected, even if there's nothing in it.
  102. 1. If you've already got a Black and white 64x64 cicn you want to convert, skip to number 7.
  103. 2. Create a new cicn resource by choosing "create new resource," at the main window and typing "cicn." A window will pop up, with the standard editing tools.
  104. 3. Make the cicn 64x64 pixels by choosing "icon size" from the "cicn" menu.
  105. 4. Click on the box labeled "B&W"
  106. 5. Draw or paste in your jumbo image
  107. 6. Close the editing window.
  108. 7. Select the cicn you wish to convert.
  109. 8. Open it using the hex editor, from the resource menu.
  110. 9. Choose "Find Offset..." from the "Find" menu
  111. 10. Type in "250", and click "Find". Close the find window.
  112.     • You will be at the begining of 4 columns of hexidecimal numbers. (in the middle.) Place the text-insertion cursor before the first character of the second row by clicking at that spot. The row should look something like this: (numbers will of course vary.)
  113.  
  114.      Offset    Hexadecimal Rows.......  Garbage
  115.                  ___________________________________________
  116.                             000250       FFFF  I0000  00FF  FF00  ˇˇˇˇˇˇˇˇ
  117.                      ^ You click there.
  118.  
  119.     I feel it's important to inform you that we're doing this because that's the begining of the part we're going to select. It's very important that you click on only the start of the second row of hex in the offset 000250, because that's where your picture begins.
  120. 11. Scroll down to offset 000458. It's only a few screen fulls down — you should be able to get it.
  121. 12. Hold down shift, and click right in the middle of the the row 458. In other words, we're shift clicking a bunch of hex, to select everything from the second row of the offset 250 to offset 458. You don't have to be exact about where you click with offset 458, because it's mostly unused information. Clicking right in the middle of the row of hex will do.
  122. 13. Pat yourself on the back, because it's almost over!
  123. 14. Copy the data from the window (File menu)
  124. 15. Open up PICT->ASCII, and enter the fitting numbers (64,64,[1/0])
  125. 16. Paste in the hex, and press return. Yeeeeeeaah! It's all over!
  126.  
  127. A ppat Image:
  128. [64x64]
  129. 1. Open the ppat resource using the ppat picker.
  130. 2. Select all, and choose "copy"
  131. 3. Open a new cicn resource, and click on the box labeled "B&W"
  132. 4. Choose "Icon Size" from the cicn menu, and make the cicn 64x64
  133. 5. Choose "paste" from the edit menu
  134. 6. Follow the directions for converting a cicn, located above.
  135. [32x32]
  136. Copy the picture from the ppat to a new ICON resource. You should be able to do this by now!
  137. [16x16]
  138. Copy the picture from the ppat to a new ics# resource.
  139. [8x8]
  140. Copy the picture from the ppat to a new ics# resource. You'll have plenty of free space.
  141.  
  142. A PICT Image:
  143. 1. If the PICT image is 32x32 or smaller, paste the PICT into a new ICON resource. If it's larger, paste it into a 64x64 cicn resource, as described above.
  144.     • If you wish to use a PICT that's in the resources of a file (or application), open the file in ResEdit, double click on the PICT resource, double click on the PICT you want, then paste it into the appropriate resource as outlined in #1.
  145. 2. Use the described methods of coversion relating to what type of resource you pasted your pict into.
  146.  
  147. In all cases:
  148. If the program just sits there after you paste in the data and press return, it means it didn't have enough allocated memory. Do this:
  149.  Quit P->A.Go to the finder and select PICT->ASCII's icon. Choose "Get Info" from the File menu. Increase the "prefered size" (the text box towards the bottom) to at least 571. Close the Get Info window and start up P->A again. Voila!
  150.  
  151. Hey, by the way, if you do something creative or interesting with p2a, email it to me! I'd be glad to hear how you use it, etc. I'd especially like to hear from you if you use it in the creation of ASCII art for a BBS or Telnet site. I'm just interested. Thanks :)
  152.  
  153. > b e n   s y v e r s o n
  154. > b e n @ e d e n . c o m
  155.  
  156. PICT->ASCII and this documentation is © Copyright 1995 Ben Syverson. PICT->ASCII is 5$ Shareware. (or about that much) if you register, I'll notify you of new products I develop, etc. You also get free updates of this here program. PICT->ASCII may be distributed on any BBSes, internet FTP sites, etc, but you must not make any money from selling it, other than to cover the cost of diskettes and distribution in cases of shareware distributers. You may not change PICT->ASCII, and must include all documentation, unchanged. That is all. Jury dismissed.